Raspberry Pi: Full Stack by Dalmaris Peter

Raspberry Pi: Full Stack by Dalmaris Peter

Author:Dalmaris, Peter
Language: eng
Format: epub
Tags: Raspberry Pi development
Publisher: Tech Explorations
Published: 2015-11-03T16:00:00+00:00


Step 8.12

Ten minutes later, go back into the SQlite command line interface to see if we have a new record:

sqlite> select * from temperatures;

2015-04-07 05:13:20|1|24.2999992370605

2015-04-07 06:00:06|1|24.3999996185303

sqlite> select * from humidities;

2015-04-07 05:13:20|1|48.7000007629395

2015-04-07 06:00:06|1|47.7999992370606

(Newer records in red)

One problem with Cron is that failures are silent. If there is a problem with your schedule or with your script, and the task fails, we would not know why.

Would can only know that it didn’t work because, in our present instance, there is no additional record in the database. If this happens to you, double and triple check your script and Cron task.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.